Ext.define("SHApp.EmployeeInfo.WorkExperience.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/workexperience?format=json",
    winWidth: 665,
    winHeight: 215,
    initComponent: function () {
        Ext.apply(this);
        this.createItems();
        this.callParent(arguments);
    },
    createItems: function () {
        var me = this;
        this.items = [{
            width: 300,
            border: false,
            bodyStyle: "background:#DFE9F6",
            layout: { type: "vbox", align: "stretch" },
            items: [
                {
                    xtype: "textfield",
                    fieldLabel: "ID",
                    name: "Id",
                    hidden: true
                }, {
                    xtype: "datefield",
                    fieldLabel: "<span style='color:red'>*</span>起始日期",
                    allowBlank: false,
                    blankText: "请输入起始日期!",
                    value: new Date(),
                    name: "StartDate",
                    format: 'Y-m-d'
                }, {
                    xtype: "datefield",
                    fieldLabel: "<span style='color:red'>*</span>截至日期",
                    allowBlank: false,
                    blankText: "请输入截至日期!",
                    value: new Date(),
                    name: "EndDate",
                    format: 'Y-m-d'
                }, {
                    fieldLabel: "<span style='color:red'>*</span>工作单位",
                    allowBlank: false,
                    blankText: "请输入工作单位!",
                    xtype: "textfield",
                    name: "WorksFor",
                    maxLength: 50
                }, {
                    fieldLabel: "<span style='color:red'>*</span>岗位",
                    allowBlank: false,
                    blankText: "请输入岗位!",
                    xtype: "textfield",
                    name: "Post",
                    maxLength: 50
                }]
        }, {
            width: 300,
            border: false,
            bodyStyle: "background:#DFE9F6",
            layout: { type: "vbox", align: "stretch" },
            items: [{
                fieldLabel: "工作内容",
                xtype: "textfield",
                name: "WorkContent",
                maxLength: 100
            },
                {
                    fieldLabel: "汇报对象",
                    xtype: "textfield",
                    name: "Leader",
                    maxLength: 50
                }, {
                    fieldLabel: "工作评价",
                    xtype: "textfield",
                    name: "WorkEvaluate",
                    maxLength: 100
                }, {
                    fieldLabel: "参与项目",
                    xtype: "textfield",
                    name: "Project",
                    maxLength: 50
                }, {
                    xtype: "hiddenfield",
                    name: "EmpId",
                    fieldLabel: "员工Id"

                }, {
                    xtype: "hiddenfield",
                    name: "EmpName",
                    fieldLabel: "员工姓名"
                }]
        }
		];
    }
});